<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 



















<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>null</title>
<link href="../css/Default.css" rel="stylesheet" type="text/css" />
<script src="../scripts/Main.js"></script>
<script>
function add(m){
	var diag =new Dialog("diag1");
	diag.Width = 460;
	diag.Height = 160;
	diag.Title = "新备忘";
	diag.URL = "system/NoteDialog.jsp";
	diag.onLoad = function(){
		$DW.$("Title").focus();
		$DW.$S("DateOfMonth",m);		
	};
	diag.OKEvent = addSave;
	diag.show();
}

function addSave(){
	var dc = $DW.Form.getData("form2");
	if($DW.Verify.hasError()){
		return;
	}
	dc.add("nowDate",$V("hnowDate"));
	Server.sendRequest("com.zving.cms.document.Notes.save",dc,function(response){
		if(response.Status==1){
			window.location = "Notes.jsp?cDate="+$V('hnowDate')+"&Flag=0";
      $D.close();
		}
	})
}

function edit(m,id){
	var diag =new Dialog("diag1");
	diag.Width = 460;
	diag.Height = 160;
	diag.Title = "修改备忘";
	diag.URL = "system/NoteDialog.jsp?ID="+id;
	diag.onLoad = function(){
		$DW.$("Title").focus();
		$DW.$S("DateOfMonth",m);		
		$DW.$S("ID",id);
	};
	diag.OKEvent = addSave;
	diag.show();
	diag.OKButton.value = "保存";
	diag.addButton("Delete","删除",function(){
		del(id);
	});
}

function del(id){
	Dialog.confirm("确定要删除该条备忘吗？",function(){
	var dc = new DataCollection();	
	dc.add("ID",id);
	Server.sendRequest("com.zving.cms.document.Notes.del",dc,function(response){
		if(response.Status==0){
			Dialog.alert(response.Message);
		}else{
			if(window.$D){
				$D.close();
			}
			Dialog.alert("删除成功",function(){
				window.location.reload();
			});
		}
	})
	})
}

function ChangeDate(i){
	window.location = "Note.jsp?cDate="+$V('hnowDate')+"&Flag="+i;
}

//右键菜单
function showMenu(event,m,id){
	var menu = new Menu();
	menu.setEvent(event);
	var param = [];
	param.push(m);
	param.push(id);
	menu.setParam(param);
	menu.addItem("添加备忘",menuAdd,"/Icons/icon016a2.gif");
	menu.addItem("修改备忘",menuEdit,"/Icons/icon016a8.gif");
	menu.addItem("删除备忘",menuDel,"/Icons/icon016a3.gif");
	menu.show();
}

function menuAdd(param){
	add(param[0]);
}
function menuEdit(param){
	edit(param[0],param[1]);
}
function menuDel(param){
	del(param[1]);
}
</script>
</head>

	<body oncontextmenu="return false;">
	<table width="100%" border="0" cellspacing="6" cellpadding="0"
		style="border-collapse: separate; border-spacing: 6px;">
		<tr valign="top">
			<td>
			<table width="100%" border="0" cellspacing="0" cellpadding="6"
				class="blockTable">
				<tr>
					<td valign="middle" class="blockTd" style=" padding-bottom:0;"><img
						src="../Icons/icon016a1.gif" width="20" height="20" />个人备忘列表</td>
				</tr>
				<tr>
					<td align="right" style="padding:0;">
					<table width="260" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="100"><a href='javascript:void(0);' ztype='zPushBtn' class='zPushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='' onClick="ChangeDate(-1);;return false;" ><img src="../Icons/icon403a17.gif" /><b>上一个月&nbsp;</b></a></td>
							<td width="70" align="center">2012年02月</td>
							<td width="100"><a href='javascript:void(0);' ztype='zPushBtn' class='zPushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='' onClick="ChangeDate(1);;return false;" ><img src="../Icons/icon403a18.gif" /><b>下一个月&nbsp;</b></a></td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td><table width='100%' cellspacing='0' cellpadding='0' border='1' bordercolor='#aaccee'><tr bgcolor='#DCF0FB' align='center'><td width='15%' height='30'><font class='green'>星期日</font></td><td width='14%'>星期一</td><td width='14%'>星期二</td><td width='14%'>星期三</td><td width='14%'>星期四</td><td width='14%'>星期五</td><td width='15%'><font class='green'>星期六</font></td></tr><tr valign='top'><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(1);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>1日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(2);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>2日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(3);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>3日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(4);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>4日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td></tr><tr valign='top'><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(5);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>5日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(6);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>6日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(7);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>7日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(8);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>8日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' bgcolor='#FFFFCC' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor='#FFFFCC'"><a herf='#;' style='cursor:pointer;' onClick='edit(8,132);' onContextMenu='showMenu(event,8,132);'>今天下午开会讨论新闻栏目...</a><br></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(9);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>9日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(10);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>10日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(11);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>11日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td></tr><tr valign='top'><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(12);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>12日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(13);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>13日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(14);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>14日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(15);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>15日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"><a herf='#;' style='cursor:pointer;' onClick='edit(15,133);' onContextMenu='showMenu(event,15,133);'>会议</a><br></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(16);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>16日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(17);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>17日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(18);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>18日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td></tr><tr valign='top'><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(19);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>19日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(20);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>20日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(21);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>21日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(22);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>22日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(23);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>23日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(24);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>24日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(25);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>25日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td></tr><tr valign='top'><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(26);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>26日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(27);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>27日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(28);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>28日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' onDblClick='add(29);'><tr><td width='40' height='20' align='center' valign='middle' style='border-bottom:#aaccee 1px solid; border-right:#aaccee 1px solid; background-color:#DCF0FB'>29日<br><td bgcolor='#E9F0F8'>&nbsp;</td></tr><tr valign='top'><td colspan='2' height='55' onmouseover="this.bgColor='#EDFBD2'" onmouseout="this.bgColor=''"></td></tr></table></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></table></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
	<input name="hnowDate" id="hnowDate" value="2012-02-08" type="hidden" />
	</body>

</html>
